{#include file="admin_header.htm"#}
{#include file="admin_article_nav.htm"#}
<script src="js/Expand_Directory.js" type='text/javascript' language="javascript"></script>
<div class="admin_main_nr_box">
  <form id="form1" name="form1" method="post" action="admin_article_save.php?act=category_all_save">
    <table width="750" border="0" cellspacing="0" cellpadding="5" style="border-bottom:1px #CCCCCC solid; margin-bottom:8px;">
      <tr>
        <td width="533" height="25" style="font-size:14px;">文章分类</td>
        <td width="68" style="font-size:14px;"><input type="submit" name="Submit2" value="保存修改" class="Qishi_submit_a" onmouseover="this.className='Qishi_submit_b'"  onmouseout="this.className='Qishi_submit_a'"/></td>
        <td width="34" style="font-size:14px;"><input type="button" name="Submit" value="添加分类" class="Qishi_submit_a" onmouseover="this.className='Qishi_submit_b'"  onmouseout="this.className='Qishi_submit_a'" onclick="window.location='admin_article.php?act=category_add'"/></td>
        <td width="35" style="font-size:14px;">&nbsp;</td>
      </tr>
    </table>
	  <table width="760" border="0" cellspacing="0" cellpadding="0" style="margin-left:12px;">
        <tr>
          <td valign="top">
		  {#section name=category loop=$category_list#}
		  <table width="750" border="0" cellspacing="0" cellpadding="0"  class="link_lan">
            
            <tr>
        <td width="30">
{#if $category_list[category].id == $top_category_list and $category_list[category].id == $bottom_category_list#}
<img src="images/category_list/1.gif" width="30" height="30" align="absmiddle"  onclick="mainchgna('{#$category_list[category].id#}')" id="left_menua0{#$category_list[category].id#}" style="cursor:pointer"/>
<img src="images/category_list/2.gif" width="30" height="30" align="absmiddle"  onclick="mainchgna('{#$category_list[category].id#}')" id="left_menub0{#$category_list[category].id#}" style="display:none; cursor:pointer"/>
{#elseif $category_list[category].id == $bottom_category_list#}
<img src="images/category_list_bottom/1.gif" width="30" height="30" align="absmiddle"  onclick="mainchgna('{#$category_list[category].id#}')" id="left_menua0{#$category_list[category].id#}" style="cursor:pointer"/>
<img src="images/category_list_bottom/2.gif" width="30" height="30" align="absmiddle"  onclick="mainchgna('{#$category_list[category].id#}')" id="left_menub0{#$category_list[category].id#}" style="display:none; cursor:pointer"/>
{#elseif $category_list[category].id == $top_category_list#}
<img src="images/category_list_top/1.gif" width="30" height="30" align="absmiddle"  onclick="mainchgna('{#$category_list[category].id#}')" id="left_menua0{#$category_list[category].id#}" style="cursor:pointer"/>
<img src="images/category_list_top/2.gif" width="30" height="30" align="absmiddle"  onclick="mainchgna('{#$category_list[category].id#}')" id="left_menub0{#$category_list[category].id#}" style="display:none; cursor:pointer"/>
{#else#}
<img src="images/category_list_center/1.gif" width="30" height="30" align="absmiddle"  onclick="mainchgna('{#$category_list[category].id#}')" id="left_menua0{#$category_list[category].id#}" style="cursor:pointer"/>
<img src="images/category_list_center/2.gif" width="30" height="30" align="absmiddle"  onclick="mainchgna('{#$category_list[category].id#}')" id="left_menub0{#$category_list[category].id#}" style="display:none; cursor:pointer"/>
{#/if#}</td>
<td width="300" align="left" >
<input name="categoryname[]" type="text" class="article_category_input_a"  onfocus="this.className='article_category_input_c'"   onblur="this.className='article_category_input_a'" value="{#$category_list[category].categoryname#}" maxlength="20" style="color:#0033CC; width:142px; width:242px;"/>
                <span style="color:#666666; font-size:10px;">(id:{#$category_list[category].id#})</span>
              <input name="y_id[]" type="checkbox" id="y_id[]" value="{#$category_list[category].id#}" checked="checked" style="display:none"/></td>
              <td width="50" align="right" >排序:              </td>
              <td width="50" align="center" ><input name="category_order[]" type="text" class="article_category_input_a" style="width:30px; font-size:12px;"  onfocus="this.className='article_category_input_c'"   onblur="this.className='article_category_input_a'"  onkeyup="if(event.keyCode !=37 && event.keyCode != 39) value=value.replace(/\D/g,'');" value="{#$category_list[category].category_order#}" maxlength="3" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/\D/g,''))"/></td>
              <td><a href="admin_article.php?act=category_add&ParentID={#$category_list[category].id#}">此类下添加子类</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="?act=edit_category&y_id={#$category_list[category].id#}">修改</a>&nbsp;&nbsp;
			  {#if $category_list[category].admin_set<>"1"#}
			  |&nbsp;&nbsp;<a onclick="return confirm('你确定要删除吗？')" href="admin_article_save.php?act=del_category&y_id={#$category_list[category].id#}">删除</a>
			  {#/if#}
			  </td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="link_lan" id="left_menu0{#$category_list[category].id#}">
{#section name=category_f loop=$category_list[category].category#}	
<tr>
<td width="30" height="30" > {#if $category_list[category].category[category_f].ParentID != $bottom_category_list#} <img src="images/category_list_center/plus1.gif" width="30" height="30" align="absmiddle" /> {#/if#} </td>
        <td width="300">&nbsp;&nbsp;
		{#if $category_list[category].ending == $category_list[category].category[category_f].id#}
		<img src="images/category_list_center/nofollow2.gif" width="30" height="30" align="absmiddle" />
		{#else#}
		<img src="images/category_list_center/nofollow1.gif" width="30" height="30" align="absmiddle" />
		{#/if#}
            <input name="categoryname[]2" type="text" class="article_category_input_a"  onfocus="this.className='article_category_input_c'"   onblur="this.className='article_category_input_a'" value="{#$category_list[category].category[category_f].categoryname#}" maxlength="20"/>
            <span style="color:#666666; font-size:10px;">(id:{#$category_list[category].category[category_f].id#})</span>
            <input name="y_id[]2" type="checkbox" id="y_id[]2" value="{#$category_list[category].category[category_f].id#}" checked="checked" / style="display:none" /></td>
        <td width="50" align="right"  >排序: </td>
        <td width="50" align="center" ><input name="category_order[]2" type="text" class="article_category_input_a" style="width:30px; font-size:12px;"  onfocus="this.className='article_category_input_c'"   onblur="this.className='article_category_input_a'"  onkeyup="if(event.keyCode !=37 && event.keyCode != 39) value=value.replace(/\D/g,'');" value="{#$category_list[category].category[category_f].category_order#}" maxlength="3" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/\D/g,''))"/></td>
        <td  >
		<a href="?act=edit_category&y_id={#$category_list[category].category[category_f].id#}">修改</a>&nbsp;&nbsp;
		 {#if $category_list[category].category[category_f].admin_set<>"1"#}
		|&nbsp;&nbsp;
		<a onclick="return confirm('你确定要删除吗？')" href="admin_article_save.php?act=del_category&y_id={#$category_list[category].category[category_f].id#}">删除</a>
		{#/if#}
		</td>
            </tr>
{#/section#}
          </table>{#/section#}</td>
        </tr>
    </table>
	  <table width="750" border="0" cellspacing="0" cellpadding="5" style="border-top:1px #CCCCCC solid; margin-top:8px;">
        <tr>
          <td width="533" height="25" style="font-size:14px;">&nbsp;</td>
          <td width="68" style="font-size:14px;"><input type="submit" name="Submit22" value="保存修改" class="Qishi_submit_a" onmouseover="this.className='Qishi_submit_b'"  onmouseout="this.className='Qishi_submit_a'"/></td>
          <td width="34" style="font-size:14px;"><input type="button" name="Submit3" value="添加分类" class="Qishi_submit_a" onmouseover="this.className='Qishi_submit_b'"  onmouseout="this.className='Qishi_submit_a'" onclick="window.location='admin_article.php?act=category_add'"/></td>
          <td width="35" style="font-size:14px;">&nbsp;</td>
        </tr>
      </table>
	  <!--循环体 -->
  </form>
  <table width="800" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td height="40">&nbsp;</td>
    </tr>
  </table>
</div>
{#include file="admin_footer.htm"#}
</body>
</html>